<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
TemplateParser (Soy Complete)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="TemplateParser (Soy Complete)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/SoyFileSetParser.html" title="class in com.google.template.soy.soyparse"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html" title="interface in com.google.template.soy.soyparse"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html?com/google/template/soy/soyparse/TemplateParser.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="TemplateParser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.google.template.soy.soyparse</FONT>
<BR>
Class TemplateParser</H2>
<PRE>
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.template.soy.soyparse.TemplateParser</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html" title="interface in com.google.template.soy.soyparse">TemplateParserConstants</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>TemplateParser</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html" title="interface in com.google.template.soy.soyparse">TemplateParserConstants</A></DL>
</PRE>

<P>
This parser's specification is in TemplateParser.jj, which is read by JavaCC and transformed
 into TemplateParser.java. To modify this parser, please edit TemplateParser.jj. Do not edit
 TemplateParser.java directly.

 <p> Important: Do not use outside of Soy code (treat as superpackage-private).

 <pre>
 This parser parses the body of a Soy template:

 1. Comments:
    + Comments are only allowed outside of Soy tags.
    + Standard "//" for a rest-of-line comment. Must appear at start of line or after a space.
    + Standard slash-star (/*) ... star-slash (*&#47;) for a block comment.

 2. Soy tag format:
    + Can be delimited by single braces "{...}" or double braces "{{...}}".
    + Soy tags delimited by double braces are allowed to contain single braces within.
    + Some Soy tags are allowed to end in "/}" or "/}}" to denote immediate ending of a block.
    + It is an error to use "/}" or "/}}" when it's not applicable to the command.
    + If there is a command name, it must come immediately after the opening delimiter.
    + The command name must be followed by either the closing delimiter (if the command does not
      take any command text) or a whitespace (if the command takes command text).
    + It is an error to provide command text when it's not applicable, and vice versa.
    + This parser does not parse command text (that will be separate).
    Examples:
    {print $boo}   // explicit 'print' command
    {$boo.foo}   // implicit 'print' command
    {printer}   // implicit 'print' command (the prefix 'print' here is not a command name)
    {\n}   // a command that doesn't take any command text
    {call .gooMoo data="all" /}   // self-ending block
    {call .gooMoo data="all"}...{/call}   // block with separate start and end tags

 3. Raw text:
    + Raw text is fixed text that will be part of the template output. There are 3 types.
    + Any text outside of Soy tags is raw text.
    + There are 7 special character commands that produce raw text strings:
      {sp} = space   {nil} = empty string   {\n} = newline (line feed)   {\r} = carriage return
      {\t} = tab   {lb} = left brace   {rb} = right brace
    + A section of raw text (may contain braces) can be enclosed within a 'literal' block:
      {literal}...{/literal}

 4. Msg blocks:
    + A block between 'msg' and '/msg' tags represents a message for translation.
    + It is an error to nest 'msg' blocks.
    + Within a 'msg' block, the parsing of Soy tags is the same. The only difference is that we
      also recognize "&lt;" and "&gt;" as opening and closing an HTML tag. This is because each
      HTML tag as a whole needs to be turned into a single placeholder in the message.
    Example:
    {msg desc="Event title."}
      Join event &lt;a href="{$event.url}"&gt;{$event.title}&lt;/a&gt;.
    {/msg}

 5. Other Soy commands:
    {print ...}
    {...}    // implied 'print' command
    {css ...}
    {let ... /}
    {let ...}...{/let}
    {if ...}...{elseif ...}...{else ...}...{/if}
    {switch ...}{case ...}...{default}...{/switch}
    {foreach ...}...{ifempty}...{/foreach}
    {for ...}...{/for}
    {call ... /}
    {delcall ... /}
    {call ...}{param ... /}{param ...}...{/param}{/call}
    {delcall ...}{param ... /}{param ...}...{/param}{/delcall}
    {log}...{/log}
    {debugger}

 6. Misc:
    + The following commands are not allowed to appear in a template:
      {namespace ...}   {template ...}   {/template}
 </pre>
<P>

<P>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#jj_nt">jj_nt</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Next token.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#token">token</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Current token.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserTokenManager.html" title="class in com.google.template.soy.soyparse">TemplateParserTokenManager</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#token_source">token_source</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generated Token Manager.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.google.template.soy.soyparse.TemplateParserConstants"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface com.google.template.soy.soyparse.<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html" title="interface in com.google.template.soy.soyparse">TemplateParserConstants</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#AFTER_CMD_NAME_1">AFTER_CMD_NAME_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#AFTER_CMD_NAME_2">AFTER_CMD_NAME_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#AFTER_SOY_TAG_OPEN">AFTER_SOY_TAG_OPEN</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#ANY_CHAR">ANY_CHAR</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BASIC_RAW_TEXT_NL">BASIC_RAW_TEXT_NL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BASIC_RAW_TEXT_NOT_NL_1">BASIC_RAW_TEXT_NOT_NL_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BASIC_RAW_TEXT_NOT_NL_2">BASIC_RAW_TEXT_NOT_NL_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BASIC_RAW_TEXT_NOT_NL_3">BASIC_RAW_TEXT_NOT_NL_3</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BLOCK_COMMENT_CHAR">BLOCK_COMMENT_CHAR</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BLOCK_COMMENT_END">BLOCK_COMMENT_END</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BLOCK_COMMENT_START">BLOCK_COMMENT_START</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#BRACE">BRACE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_ANY_CALL">CMD_NAME_ANY_CALL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_CASE">CMD_NAME_CASE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_CR">CMD_NAME_CR</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_CSS">CMD_NAME_CSS</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_DEBUGGER">CMD_NAME_DEBUGGER</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_DEFAULT">CMD_NAME_DEFAULT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_ELSE">CMD_NAME_ELSE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_ELSEIF">CMD_NAME_ELSEIF</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_ANY_CALL">CMD_NAME_END_ANY_CALL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_FOR">CMD_NAME_END_FOR</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_FOREACH">CMD_NAME_END_FOREACH</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_IF">CMD_NAME_END_IF</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_LET">CMD_NAME_END_LET</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_LITERAL">CMD_NAME_END_LITERAL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_LOG">CMD_NAME_END_LOG</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_MSG">CMD_NAME_END_MSG</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_PARAM">CMD_NAME_END_PARAM</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_PLURAL">CMD_NAME_END_PLURAL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_SELECT">CMD_NAME_END_SELECT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_SWITCH">CMD_NAME_END_SWITCH</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_END_TEMPLATE">CMD_NAME_END_TEMPLATE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_FOR">CMD_NAME_FOR</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_FOREACH">CMD_NAME_FOREACH</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_IF">CMD_NAME_IF</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_IFEMPTY">CMD_NAME_IFEMPTY</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_LB">CMD_NAME_LB</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_LET">CMD_NAME_LET</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_LF">CMD_NAME_LF</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_LITERAL">CMD_NAME_LITERAL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_LOG">CMD_NAME_LOG</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_MSG">CMD_NAME_MSG</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_NAMESPACE">CMD_NAME_NAMESPACE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_NIL">CMD_NAME_NIL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_PARAM">CMD_NAME_PARAM</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_PLURAL">CMD_NAME_PLURAL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_PRINT">CMD_NAME_PRINT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_RB">CMD_NAME_RB</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_SELECT">CMD_NAME_SELECT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_SP">CMD_NAME_SP</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_SWITCH">CMD_NAME_SWITCH</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_TAB">CMD_NAME_TAB</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_NAME_TEMPLATE">CMD_NAME_TEMPLATE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_TEXT_CHAR_1">CMD_TEXT_CHAR_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_TEXT_CHAR_2">CMD_TEXT_CHAR_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_TEXT_DIRECTIVE_NAME">CMD_TEXT_DIRECTIVE_NAME</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#CMD_TEXT_PHNAME_ATTR">CMD_TEXT_PHNAME_ATTR</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#DEFAULT">DEFAULT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#DEFAULT_IN_MSG_BLOCK_AT_SOL">DEFAULT_IN_MSG_BLOCK_AT_SOL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#DEFAULT_IN_MSG_BLOCK_NOT_SOL">DEFAULT_IN_MSG_BLOCK_NOT_SOL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#DEFAULT_NOT_SOL">DEFAULT_NOT_SOL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#EOF">EOF</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#IDENT">IDENT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#IN_CMD_TEXT_1">IN_CMD_TEXT_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#IN_CMD_TEXT_2">IN_CMD_TEXT_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#IN_COMMENT_BLOCK">IN_COMMENT_BLOCK</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#IN_LITERAL_BLOCK">IN_LITERAL_BLOCK</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#LINE_COMMENT_AT_SOL">LINE_COMMENT_AT_SOL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#LINE_COMMENT_NOT_SOL">LINE_COMMENT_NOT_SOL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#LITERAL_RAW_TEXT_CONTENT">LITERAL_RAW_TEXT_CONTENT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#MSG_HTML_TAG_CLOSE">MSG_HTML_TAG_CLOSE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#MSG_HTML_TAG_OPEN">MSG_HTML_TAG_OPEN</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#NL">NL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#NOT_BRACE">NOT_BRACE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#NOT_CMD_NAME_BOUNDARY_AFTER_CMD_NAME">NOT_CMD_NAME_BOUNDARY_AFTER_CMD_NAME</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#NOT_NL">NOT_NL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#NOT_WS">NOT_WS</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#REG_SOY_TAG_CLOSE_AFTER_CMD_NAME_1">REG_SOY_TAG_CLOSE_AFTER_CMD_NAME_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#REG_SOY_TAG_CLOSE_AFTER_CMD_NAME_2">REG_SOY_TAG_CLOSE_AFTER_CMD_NAME_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#REG_SOY_TAG_CLOSE_AFTER_CMD_TEXT_1">REG_SOY_TAG_CLOSE_AFTER_CMD_TEXT_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#REG_SOY_TAG_CLOSE_AFTER_CMD_TEXT_2">REG_SOY_TAG_CLOSE_AFTER_CMD_TEXT_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_NAME_1">SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_NAME_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_NAME_2">SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_NAME_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_TEXT_1">SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_TEXT_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_TEXT_2">SELF_ENDING_SOY_TAG_CLOSE_AFTER_CMD_TEXT_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#SOY_TAG_OPEN_1">SOY_TAG_OPEN_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#SOY_TAG_OPEN_2">SOY_TAG_OPEN_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#tokenImage">tokenImage</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#WS">WS</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#WS_AFTER_CMD_NAME">WS_AFTER_CMD_NAME</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#WS_CHAR">WS_CHAR</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#WS_NOT_NL">WS_NOT_NL</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_BRACE_AFTER_SOY_TAG_OPEN">XXX_BRACE_AFTER_SOY_TAG_OPEN</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_BRACE_BEFORE_SOY_TAG_CLOSE">XXX_BRACE_BEFORE_SOY_TAG_CLOSE</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_CMD_TEXT_PHNAME_NOT_IDENT">XXX_CMD_TEXT_PHNAME_NOT_IDENT</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_DOUBLE_LEFT_BRACE_IN_SOY_TAG_2">XXX_DOUBLE_LEFT_BRACE_IN_SOY_TAG_2</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_DOUBLE_RIGHT_BRACE_IN_SOY_TAG_1">XXX_DOUBLE_RIGHT_BRACE_IN_SOY_TAG_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_INVALID_END_LITERAL_TAG">XXX_INVALID_END_LITERAL_TAG</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_LEFT_BRACE_IN_SOY_TAG_1">XXX_LEFT_BRACE_IN_SOY_TAG_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_NESTED_LITERAL_TAG">XXX_NESTED_LITERAL_TAG</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_NO_CMD_NAME">XXX_NO_CMD_NAME</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_UNMATCHED_RIGHT_BRACE_1">XXX_UNMATCHED_RIGHT_BRACE_1</A>, <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html#XXX_UNMATCHED_RIGHT_BRACE_2">XXX_UNMATCHED_RIGHT_BRACE_2</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#TemplateParser(java.io.InputStream)">TemplateParser</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor with InputStream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#TemplateParser(java.io.InputStream, java.lang.String)">TemplateParser</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream,
               <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor with InputStream and supplied encoding</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#TemplateParser(java.io.Reader)">TemplateParser</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;stream)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#TemplateParser(java.io.Reader, java.lang.String, int, com.google.template.soy.base.IdGenerator)">TemplateParser</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;input,
               <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;filePath,
               int&nbsp;templateBodyStartLine,
               <A HREF="../../../../../com/google/template/soy/base/IdGenerator.html" title="interface in com.google.template.soy.base">IdGenerator</A>&nbsp;nodeIdGen)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that takes a reader object providing the input.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#TemplateParser(java.lang.String, java.lang.String, int, com.google.template.soy.base.IdGenerator)">TemplateParser</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;input,
               <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;filePath,
               int&nbsp;templateBodyStartLine,
               <A HREF="../../../../../com/google/template/soy/base/IdGenerator.html" title="interface in com.google.template.soy.base">IdGenerator</A>&nbsp;nodeIdGen)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that takes a string input.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#TemplateParser(com.google.template.soy.soyparse.TemplateParserTokenManager)">TemplateParser</A></B>(<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserTokenManager.html" title="class in com.google.template.soy.soyparse">TemplateParserTokenManager</A>&nbsp;tm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor with generated Token Manager.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#disable_tracing()">disable_tracing</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disable tracing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#enable_tracing()">enable_tracing</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable tracing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/ParseException.html" title="class in com.google.template.soy.soyparse">ParseException</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#generateParseException()">generateParseException</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate ParseException.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#getNextToken()">getNextToken</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the next Token.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#getToken(int)">getToken</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the specific Token.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#MaybeWhitespace(java.lang.String)">MaybeWhitespace</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;errorMessage)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Matches empty string or BasicRawText, and if the latter, then ensures it's all whitespace.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../../com/google/template/soy/soytree/SoyNode.StandaloneNode.html" title="interface in com.google.template.soy.soytree">SoyNode.StandaloneNode</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#parseTemplateBody()">parseTemplateBody</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to parse the input as the body of a Soy template.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#ReInit(java.io.InputStream)">ReInit</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reinitialise.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#ReInit(java.io.InputStream, java.lang.String)">ReInit</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream,
       <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reinitialise.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#ReInit(java.io.Reader)">ReInit</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;stream)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reinitialise.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/soyparse/TemplateParser.html#ReInit(com.google.template.soy.soyparse.TemplateParserTokenManager)">ReInit</A></B>(<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserTokenManager.html" title="class in com.google.template.soy.soyparse">TemplateParserTokenManager</A>&nbsp;tm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reinitialise.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="token_source"><!-- --></A><H3>
token_source</H3>
<PRE>
public <A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserTokenManager.html" title="class in com.google.template.soy.soyparse">TemplateParserTokenManager</A> <B>token_source</B></PRE>
<DL>
<DD>Generated Token Manager.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="token"><!-- --></A><H3>
token</H3>
<PRE>
public <A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A> <B>token</B></PRE>
<DL>
<DD>Current token.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="jj_nt"><!-- --></A><H3>
jj_nt</H3>
<PRE>
public <A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A> <B>jj_nt</B></PRE>
<DL>
<DD>Next token.
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="TemplateParser(java.io.Reader, java.lang.String, int, com.google.template.soy.base.IdGenerator)"><!-- --></A><H3>
TemplateParser</H3>
<PRE>
public <B>TemplateParser</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;input,
                      <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;filePath,
                      int&nbsp;templateBodyStartLine,
                      <A HREF="../../../../../com/google/template/soy/base/IdGenerator.html" title="interface in com.google.template.soy.base">IdGenerator</A>&nbsp;nodeIdGen)</PRE>
<DL>
<DD>Constructor that takes a reader object providing the input.
 Important: The input should end with a newline sequence (one of "\n", "\r", or "\r\n").
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - The input to parse. This reader will not be closed by this parser.<DD><CODE>nodeIdGen</CODE> - The node id generator for the tree being built.</DL>
</DL>
<HR>

<A NAME="TemplateParser(java.lang.String, java.lang.String, int, com.google.template.soy.base.IdGenerator)"><!-- --></A><H3>
TemplateParser</H3>
<PRE>
public <B>TemplateParser</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;input,
                      <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;filePath,
                      int&nbsp;templateBodyStartLine,
                      <A HREF="../../../../../com/google/template/soy/base/IdGenerator.html" title="interface in com.google.template.soy.base">IdGenerator</A>&nbsp;nodeIdGen)</PRE>
<DL>
<DD>Constructor that takes a string input.
 Important: The input should end with a newline sequence (one of "\n", "\r", or "\r\n").
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - The input to parse.<DD><CODE>filePath</CODE> - File path or uri describing where the input is from. Used for reporting.<DD><CODE>templateBodyStartLine</CODE> - The start line for input, 1-indexed.<DD><CODE>nodeIdGen</CODE> - The node id generator for the tree being built.</DL>
</DL>
<HR>

<A NAME="TemplateParser(java.io.InputStream)"><!-- --></A><H3>
TemplateParser</H3>
<PRE>
public <B>TemplateParser</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream)</PRE>
<DL>
<DD>Constructor with InputStream.
<P>
</DL>
<HR>

<A NAME="TemplateParser(java.io.InputStream, java.lang.String)"><!-- --></A><H3>
TemplateParser</H3>
<PRE>
public <B>TemplateParser</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream,
                      <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;encoding)</PRE>
<DL>
<DD>Constructor with InputStream and supplied encoding
<P>
</DL>
<HR>

<A NAME="TemplateParser(java.io.Reader)"><!-- --></A><H3>
TemplateParser</H3>
<PRE>
public <B>TemplateParser</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;stream)</PRE>
<DL>
<DD>Constructor.
<P>
</DL>
<HR>

<A NAME="TemplateParser(com.google.template.soy.soyparse.TemplateParserTokenManager)"><!-- --></A><H3>
TemplateParser</H3>
<PRE>
public <B>TemplateParser</B>(<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserTokenManager.html" title="class in com.google.template.soy.soyparse">TemplateParserTokenManager</A>&nbsp;tm)</PRE>
<DL>
<DD>Constructor with generated Token Manager.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="parseTemplateBody()"><!-- --></A><H3>
parseTemplateBody</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../../com/google/template/soy/soytree/SoyNode.StandaloneNode.html" title="interface in com.google.template.soy.soytree">SoyNode.StandaloneNode</A>&gt; <B>parseTemplateBody</B>()
                                               throws <A HREF="../../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A>,
                                                      <A HREF="../../../../../com/google/template/soy/soyparse/TokenMgrError.html" title="class in com.google.template.soy.soyparse">TokenMgrError</A>,
                                                      <A HREF="../../../../../com/google/template/soy/soyparse/ParseException.html" title="class in com.google.template.soy.soyparse">ParseException</A></PRE>
<DL>
<DD>Attempts to parse the input as the body of a Soy template.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../com/google/template/soy/soyparse/TokenMgrError.html" title="class in com.google.template.soy.soyparse">TokenMgrError</A></CODE> - When the input has a token error.
<DD><CODE><A HREF="../../../../../com/google/template/soy/soyparse/ParseException.html" title="class in com.google.template.soy.soyparse">ParseException</A></CODE> - When the input has a parse error.
<DD><CODE><A HREF="../../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="MaybeWhitespace(java.lang.String)"><!-- --></A><H3>
MaybeWhitespace</H3>
<PRE>
public final void <B>MaybeWhitespace</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;errorMessage)
                           throws <A HREF="../../../../../com/google/template/soy/soyparse/ParseException.html" title="class in com.google.template.soy.soyparse">ParseException</A></PRE>
<DL>
<DD>Matches empty string or BasicRawText, and if the latter, then ensures it's all whitespace.
 Used for areas that should not have any content (e.g. between 'call' and 'param' tags).

 MaybeWhitespace -> [ BasicRawText ]

 Package visible for testing.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../com/google/template/soy/soyparse/ParseException.html" title="class in com.google.template.soy.soyparse">ParseException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="ReInit(java.io.InputStream)"><!-- --></A><H3>
ReInit</H3>
<PRE>
public void <B>ReInit</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream)</PRE>
<DL>
<DD>Reinitialise.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="ReInit(java.io.InputStream, java.lang.String)"><!-- --></A><H3>
ReInit</H3>
<PRE>
public void <B>ReInit</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;stream,
                   <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;encoding)</PRE>
<DL>
<DD>Reinitialise.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="ReInit(java.io.Reader)"><!-- --></A><H3>
ReInit</H3>
<PRE>
public void <B>ReInit</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;stream)</PRE>
<DL>
<DD>Reinitialise.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="ReInit(com.google.template.soy.soyparse.TemplateParserTokenManager)"><!-- --></A><H3>
ReInit</H3>
<PRE>
public void <B>ReInit</B>(<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserTokenManager.html" title="class in com.google.template.soy.soyparse">TemplateParserTokenManager</A>&nbsp;tm)</PRE>
<DL>
<DD>Reinitialise.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getNextToken()"><!-- --></A><H3>
getNextToken</H3>
<PRE>
public final <A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A> <B>getNextToken</B>()</PRE>
<DL>
<DD>Get the next Token.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getToken(int)"><!-- --></A><H3>
getToken</H3>
<PRE>
public final <A HREF="../../../../../com/google/template/soy/soyparse/Token.html" title="class in com.google.template.soy.soyparse">Token</A> <B>getToken</B>(int&nbsp;index)</PRE>
<DL>
<DD>Get the specific Token.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="generateParseException()"><!-- --></A><H3>
generateParseException</H3>
<PRE>
public <A HREF="../../../../../com/google/template/soy/soyparse/ParseException.html" title="class in com.google.template.soy.soyparse">ParseException</A> <B>generateParseException</B>()</PRE>
<DL>
<DD>Generate ParseException.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="enable_tracing()"><!-- --></A><H3>
enable_tracing</H3>
<PRE>
public final void <B>enable_tracing</B>()</PRE>
<DL>
<DD>Enable tracing.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="disable_tracing()"><!-- --></A><H3>
disable_tracing</H3>
<PRE>
public final void <B>disable_tracing</B>()</PRE>
<DL>
<DD>Disable tracing.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/SoyFileSetParser.html" title="class in com.google.template.soy.soyparse"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../com/google/template/soy/soyparse/TemplateParserConstants.html" title="interface in com.google.template.soy.soyparse"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html?com/google/template/soy/soyparse/TemplateParser.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="TemplateParser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

        
          <div id="footer">
            <div id="footerlogo" style="float:left">
              <img src="http://www.google.com/images/art.gif"
                   alt="Google colored balls">
            </div>
            <div id="copyright" style="float:left">
              <p>
                &copy; 2009 Google -
                <a href="http://www.google.com/privacy.html">Privacy Policy</a> -
                <a href="http://www.google.com/terms_of_service.html">Terms and Conditions</a> -
                <a href="http://www.google.com/about.html">About Google</a>
              </p>
            </div>
          </div>
        
      
</BODY>
</HTML>
